#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>


namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    
private slots:
    void on_actionOpen_activated();
    void on_actionAbout_activated();
    void on_actionSave_activated();
    void on_actionAboutQT_activated();
    void on_actionDecodeAsGreyscaleCode_activated();
    void on_actionEncodeAsGreyscaleCode_activated();

private:
    Ui::MainWindow *ui;
    QImage image;

    void drawResult(unsigned char** result, int size);
    unsigned char** getGrey2D(const QImage& image);
    void createImageFromScene();
};

#endif // MAINWINDOW_H
